package model

import "time"

type Safe struct {
	Id        uint      `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	UserId    uint      `gorm:"column:user_id;type:bigint UNSIGNED;not null;default:0;" json:"user_id"`
	Content   string    `gorm:"column:content;type:varchar(255);not null;" json:"content"`
	BName     string    `gorm:"column:b_name;type:varchar(255);not null;" json:"b_name"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
}

func (s *Safe) TableName() string {
	return "safe"
}
